//
//  SendContentView.h
//  ChatDemo
//
//  Created by 陈石 on 15/5/12.
//  Copyright (c) 2015年 陈石. All rights reserved.
//

@import UIKit;

@class SendContentView;

@protocol sendContentDelegate <NSObject>
//text
- (void)sendMessage:(SendContentView *)sencontentView Message:(NSString *)message;

//image
- (void)sendImage:(SendContentView *)sencontentView Message:(UIImage *)image;

//audio
- (void)sendAudio:(SendContentView *)sencontentView Message:(NSData *)audio time:(NSInteger)second;

//media
- (void)sendMedia:(SendContentView *)sencontentView Message:(NSData *)media;

@end

@interface SendContentView : UIView <UIActionSheetDelegate, UIImagePickerControllerDelegate, UINavigationControllerDelegate>

@property(nonatomic, retain) UIButton   *btnSendMessage;
@property(nonatomic, retain) UIButton   *btnChangeVoiceState;
@property(nonatomic, retain) UIButton   *btnVoiceRecord;
@property(nonatomic, retain) UITextView *TextViewInput;

@property(nonatomic, assign) BOOL isAbleToSendTextMessage;

@property(nonatomic, retain) UIViewController *superVC;

@property(nonatomic, assign) id <sendContentDelegate> delegate;

- (id)initWithSuperVC:(UIViewController *)superVC;

- (void)changeSendBtnWithPhoto:(BOOL)isPhoto;

@end
